<?php
	defined( '_JEXEC' ) or die( 'Restricted access' );
	
	$controllerName = JRequest::getWord('c', 'Division');
	
#	require_once( JPATH_COMPONENT.DS.strtolower($controllerName).'controller.php' );
	
	// Require specific controller if requested
	if($controllerName = JRequest::getWord('c', 'Division')) {
		$controllerName = $controllerName.'Controller';
		$path = JPATH_COMPONENT.DS.'controllers'.DS.$controllerName.'.php';
		if (file_exists($path)) {
			require_once $path;
		} else {
			$controller = '';
		}
	}
	
	$controller = new $controllerName();
	$controller->execute( JRequest::getVar( 'task' ) );
	$controller->redirect();
?>